<?php
$this->breadcrumbs=array(
	'My Account',
);
?>
<div class="main-content">
<h1>My Account</h1>

<?php if(Yii::app()->user->hasFlash('changepassword')): ?>

<div class="flash-success">
<?php echo Yii::app()->user->getFlash('changepassword'); ?>
</div>

<?php else: ?>


<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'changepassword-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
	<?php echo $form->labelEx($model,'currentPassword'); ?>
	<?php echo $form->passwordField($model,'currentPassword'); ?>
	<?php echo $form->error($model,'currentPassword'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'newPassword'); ?>
	<?php echo $form->passwordField($model,'newPassword'); ?>
	<?php echo $form->error($model,'newPassword'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'newPassword2'); ?>
	<?php echo $form->passwordField($model,'newPassword2'); ?>
	<?php echo $form->error($model,'newPassword2'); ?>
	</div>

	<div class="row buttons">
	<?php echo CHtml::submitButton('Change'); ?>
	</div>

	<?php $this->endWidget(); ?>

</div>
<!-- form -->

	<?php endif; ?>

</div>